package com.yonyou.crm.common.field.handler;

import java.util.List;

import com.yonyou.crm.common.field.relation.FieldRelation;

public class FieldRelationHandler<T> {
	
	public List<T> handler(List<T> vos,List<FieldRelation<T>> relations) {
		if(vos == null || relations == null) {
			return vos;
		}
		FieldRelation<T> relation ;
		for(int i=0,len=relations.size();i<len;i++) {
			relation = relations.get(i);
			relation.handle(vos);
		}
		return vos;
	}
}
